package ch06_抽象类接口与嵌套类;

abstract class TeachingTool{
	abstract void teaching();
}
interface Drawable{
	void draw();
}
public class Chalk extends TeachingTool implements Drawable {
	void teaching() {
		System.out.println("用粉笔在黑板上教学……");
	}
	public void draw() {
		System.out.println("用粉笔在黑板上涂鸦……");
	}
	public static void main(String[] args) {
		Chalk c =new Chalk();
		c.teaching();
		c.draw();
	}
}
